package ua.com.alus.resvac.crm.domen.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * Created by Usatov Alexey
 */
@Entity
@Table(name = "REGION")
@NamedQueries({
        @NamedQuery(name = Region.SELECT_ALL_QUERY, query = "select r from Region r order by id")
})
public class Region {

    public static final String SELECT_ALL_QUERY = "ua.com.alus.resvac.crm.domen.entities.Region.selectAll";

    @Id
    @Column(name = "id")
    private Integer id;

    @Column(name = "NAME")
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
